<template>
  <div>
    <div class="about">
      <div class="swiper-container">
        <div class="swiper-wrapper">
          <div class="swiper-slide">Slide 1</div>
          <div class="swiper-slide">Slide 2</div>
          <div class="swiper-slide">Slide 3</div>
        </div>
        <!-- 如果需要分页器 -->
        <div class="swiper-pagination"></div>

        <!-- 如果需要导航按钮 -->
        <div class="swiper-button-prev"></div>
        <div class="swiper-button-next"></div>

        <!-- 如果需要滚动条 -->
        <!--    <div class="swiper-scrollbar"></div>-->
      </div>
    </div>
  </div>
</template>

<script>
import Swiper from "swiper";
export default {
  name: "About",
  data() {
    return {
        arr:[],
    };
  },
  mounted() {
    new Swiper(".swiper-container", {
      loop: true,
      // 如果需要分页器
      pagination: ".swiper-pagination",
      // 如果需要前进后退按钮
      nextButton: ".swiper-button-next",
      prevButton: ".swiper-button-prev",
      // 如果需要滚动条
      // scrollbar: '.swiper-scrollbar',
      //如果需要自动切换海报
      //   autoplay: {
      //     delay: 10000,//时间 毫秒
      //     disableOnInteraction: false,//用户操作之后是否停止自动轮播默认true
      //   },
    });


    this.axios.get('https://jd.itying.com/api/focus').then((res)=>{
            this.title=res.data.result
            console.log(this.title);
        });
  },

  
}

</script>


 <style lang='css'>
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
a {
  text-decoration: none;
}
ul,
li {
  list-style: none;
}

a,
input,
button {
  outline: none;
  border: none;
  -webkit-tap-highlight-color: transparent;
  /* 移除点击产生的高亮效果：透明色 */
}
input,
button {
  -webkit-appearance: none;
  /* 在ios中加入这句能修改button和input的宽高 */
}
img,
a {
  -webkit-touch-callout: none;
  /* 禁止长按弹出菜单 */
}
img {
  vertical-align: middle;
}
html,
body,
.app {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.swiper-container {
  height: 200px;
  width: 100%;
}
.swiper-slide {
  width: 100%;
  height: 100%;
  background-color: #42b983;
  text-align: center;
  line-height: 200px;
}
</style>

